Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dropdown] Removed deletion of text/value metadata #3879

Closed
wants to merge 1 commit into from

Conversation

mdehoog
Copy link
Contributor

@mdehoog mdehoog commented Mar 28, 2016

Fixes #3622.

Happy to put this behind a flag instead if you think the current behavior should be the default.

jlukic added a commit that referenced this pull request May 15, 2016
@jlukic
Copy link
Member

jlukic commented May 15, 2016

It looks like the internal issue was that mutation observers were accidentally triggering refresh during internal updates to addition or message.

I've resolved this by refactoring the mutation observers to ignore internal changes.

The reason we have to flush data attributes in refresh is that otherwise updating data-value (attribute data values) will not trigger the underlying .data('value') call to update.

These values are typically updated when a mutation observer detects the underlying DOM has been rewritten.

jlukic added a commit that referenced this pull request May 15, 2016
jlukic added a commit that referenced this pull request May 15, 2016
@jlukic
Copy link
Member

jlukic commented May 15, 2016

Fixed in 2.2

@mdehoog
Copy link
Contributor Author

mdehoog commented May 16, 2016

@jlukic thanks so much for following this up 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants